import java.io.*;
class Point{                     //常
    int x,y;                     //ʾλ
    void setXY(int a,int b){
         x=a;y=b;
    }
    void showLocation(){        //ʾλ
       System.out.println("Location:("+x+","+y+")"); 
    }
}
class Rectangle extends Point{    //
    int width,height;            //εĿ͸
    int area(){                 //ε
         return width*height;
    }
    void setWH(int w,int h){
        width=w;
        height=h;
    }
    void showLocArea(){        //ʾλú
       showLocation();         //̳иԱ
       System.out.println("Area:"+area()); 
    }
}
public class ExtendsExample{
    public static void main(String args[]){
       Rectangle rect1=new  Rectangle();
       rect1.setXY(100,200);
       rect1.setWH(20,35);
       rect1.showLocArea();
    }
}